package com.litong.rms.service.impl;

import java.util.List;

import com.litong.rms.bean.Function;
import com.litong.rms.dao.FunctionDao;
import com.litong.rms.service.FunctionService;

public class FunctionServiceImpl implements FunctionService{
	
	private FunctionDao functionDao;

	public void addFunction(Function func) {
		functionDao.addFunction(func);
		
	}

	public void deleteFunction(Function func) {
		functionDao.deleteFunction(func);
		
	}

	public Function findFunction(Function func) {
		return functionDao.findFunction(func);
	}

	public <T> List<T> getFunctionList() {
		return functionDao.getFunctionList();
	}

	public void updateFunction(Function func) {
		functionDao.updateFunction(func);
		
	}

	public Function findById(int functionId) {
		
		return functionDao.findById(functionId);
	}
	
	public void setFunctionDao(FunctionDao functionDao) {
		this.functionDao = functionDao;
	}

	public FunctionDao getFunctionDao() {
		return functionDao;
	}



}
